package saeildamil.ch18.critical;

public class MultiThreadEx04 {
	public static void main(String[] args) {
		SharedAccount account = new SharedAccount();
		account.leeAccount = new Account("111-1111-1111", "이몽룡", 20000000);
		account.sungAccount = new Account("222-2222-2222", "성춘향", 10000000);
		
		TransferThread th = new TransferThread(account);
		PrintThread pth = new PrintThread(account);
		
		th.start();
		pth.start();
	}
}
